#!/bin/bash
# cp /home/app/server/conf/sysConfig.json /home/app/server/sysConfig.json
sudo cp /home/epioneer/server/conf/nginx-app.conf /etc/nginx/sites-available/default
sudo cp /home/epioneer/server/conf/nginx-app.conf /etc/nginx/sites-enabled/default
#su app
sudo service nginx stop
sudo killall -9 uwsgi
sudo nohup uwsgi --ini /home/epioneer/server/conf/uwsgi.ini &
#uwsgi --plugin python --ini /home/pte/server/conf/uwsgi.ini
sudo service nginx start &
# cd /home/pte/server
# celery -A server worker --pool=solo -l info &
# sudo python3 QueryAnswerScore.py &
# sudo python3 QueryExam2DB.py &
# sudo supervisorctl reload